<h3 class="page-title">清单明细</h3>
<div class="table-custom">
    <div class="portlet">
        <div class="portlet-title">
            <div class="title-blank">
                	<span ng-repeat="type in taskTypes" style="margin-right: 15px;">
                		<input type="radio" ng-model="taskItemGrid.checkRadio" value="{{type.value}}" name="taskType" ng-checked="type.value == basicItemType" style="position: static;margin: 0px;">
                		{{type.name}}
                	</span>
            </div>
            <a href="javascript:void(0);" class="title-operation search-expand">筛选</a>
        </div>
        <div class="portlet-search-body" style="display: none">
            <form class="form-inline" role="form" ng-show="basicItemType == '1'">
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-lightbulb-o"></i>
                            <input class="form-control" placeholder="清单标题" ng-model="taskItemGrid.query.taskTitle">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-lightbulb-o"></i>
                            <input class="form-control" placeholder="自编号" ng-model="taskItemGrid.query.vehicleNo">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-lightbulb-o"></i>
                            <input class="form-control" placeholder="车牌号" ng-model="taskItemGrid.query.plateNo">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-lightbulb-o"></i>
                            <input class="form-control" placeholder="线路号" ng-model="taskItemGrid.query.lineNo">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-bus"></i>
                            <select class="form-control" style="width: 200px;color: #b3b3b3;" ng-model="taskItemGrid.query.companyId" ng-options="opt.companyId as opt.companyName for opt in companys">
                                <option value="" >营运公司 </option>
                            </select>
                        </div>
                    </div>
                </div>
                <button class="btn btn-primary" ng-click="dynamicQuery();"><i class="fa fa-search"></i> 搜索</button>
            </form>

            <form class="form-inline" role="form" ng-show="basicItemType == '2'">
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-lightbulb-o"></i>
                            <input class="form-control" placeholder="站点名称" ng-model="taskItemGrid.query.stopName">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-lightbulb-o"></i>
                            <input class="form-control" placeholder="街道" ng-model="taskItemGrid.query.roadName">
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-md-4">
                        <div class="input-icon">
                            <i class="fa fa-lightbulb-o"></i>
                            <input class="form-control" placeholder="行向" ng-model="taskItemGrid.query.direction">
                        </div>
                    </div>
                </div>
                <button class="btn btn-primary" ng-click="dynamicQuery();"><i class="fa fa-search"></i> 搜索</button>
            </form>

        </div>
        <div class="portlet-body">
            <div ed-grid-dynamic="taskItemGrid" ed-url="checkTask/dynamicData.do"></div>
        </div>
    </div>
</div>


<div ed-modal="checkResultModal" data-options="title:'检查结果',icon:'fa-bus',static:true,width:'700px',defaultButton:false">
    <div style="padding: 5px;width: 100%;overflow: auto;height:300px;">
        <div class="portlet">
            <div class="portlet-body">
                <div class="form-body">
                    <table class="table table-striped table-bordered table-advance table-hover">
                        <thead style="text-align: center">
                            <th style="text-align: center">检查项</th>
                            <th style="text-align: center">检查结果</th>
                        </thead>
                        <tbody>
                            <tr style="text-align: center" ng-repeat="head in checkHeads">
                                <td>{{head.name}}</td>
                                <td ng-show="checkDatas[0][head.col]">{{checkDatas[0][head.col]}}</td>
                                <td ng-show="!checkDatas[0][head.col]">未做检查</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

    </div>
</div>
